package top.fyukina.fymil.parsers;

import org.dom4j.Element;
import top.fyukina.fymil.RegName;
import top.fyukina.fymil.elements.Environment;

/**
 * 可作为函数式接口，定义了解析标准
 * @param <T>
 */
public interface Parser<T> extends RegName<ParserType> {
    T parse(Element tag, Environment env);
}